<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddVotesToPaylogsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('paylogs', function (Blueprint $table) {
            $table->integer('buyer')->nullable()->after('info')->comment('付费人，1为客户(B端),2为玩家(C端)');
            $table->string('pay_purpose')->nullable()->after('buyer')->comment('存储json，作为异步回调的逻辑处理');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('paylogs', function (Blueprint $table) {
            //
        });
    }
}
